/*
 * @Author: Hou 89426584@qq.com
 * @Date: 2024-03-29 16:33:07
 * @LastEditors: Hou 89426584@qq.com
 * @LastEditTime: 2024-04-08 17:50:15
 * @FilePath: \updt-house-rent-front-wgdp\nuxt.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export default {
    // Global page headers (https://go.nuxtjs.dev/config-head)
    // router:{
    //   base:'/'
    // },
    head: {
        title: "厦门市网格化管理平台",

        meta: [
            { charset: "utf-8" },
            { name: "viewport", content: "width=device-width, initial-scale=1" },
            { hid: "description", name: "description", content: "" }
        ],
        link: [
            { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
            {
                rel: "stylesheet",
                types: "text/css",
                href: "/iconfont/iconfont.css"
            },
            {
                rel: "stylesheet",
                types: "text/css",
                href: "/font/font.css"
            },
            { rel: "stylesheet", types: "text/css", href: "/imosSdk.css" }
        ],
        script: [{ src: "/js/config.js" }, { src: "/js/imosSdk.min.js" }]
    },

    // Global CSS (https://go.nuxtjs.dev/config-css)
    css: ["element-ui/lib/theme-chalk/index.css"],

    // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
    plugins: ["@/plugins/element-ui"],

    // Auto import components (https://go.nuxtjs.dev/config-components)
    components: true,

    // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
    buildModules: [
        // https://go.nuxtjs.dev/typescript
        "@nuxt/typescript-build"
    ],

    // Modules (https://go.nuxtjs.dev/config-modules)
    modules: ["@nuxtjs/proxy", "@nuxtjs/axios"],

    // Build Configuration (https://go.nuxtjs.dev/config-build)
    build: {
        transpile: [/^element-ui/]
    },
    proxy: [
        [
            "/library",
            {
                target: "http://172.28.80.31:8080/",
                changeOrigin: true,
                pathRewrite: {
                    "^/library": "/library"
                }
            }
        ],
        [
            "/platform-api",
            {
                target: "http://172.28.80.31:8080/",
                changeOrigin: true,
                pathRewrite: {
                    "^/platform-api": "/platform-api"
                }
            }
        ],
        [
            "/VIID",
            {
                target: "http://172.30.1.244:7010/",
                changeOrigin: true,
                pathRewrite: {
                    "^/VIID": "/VIID"
                }
            }
        ]
    ],
    server: { port: 3004 }
};